package object;

public class ObjectDemo {
    public static void main(String[] args) {
        Point p = new Point(100,200);
        System.out.println(p);
        System.out.println(p.toString());
        Point p2 = new Point(100,200);
        System.out.println(p==p2);
        System.out.println(p.equals(p2));
    }
}
